#ifndef __JUGADOR_H
#define __JUGADOR_H

#include "coche.h"
#include "terrain.h"
#include <typeinfo>
#include "camera.h"
#include "roadmap.h"
#include "terrain.h"


#define MAXPOS 1700
#define MINPOS 10

class CJugador : public CCoche{
    private:
        float mph, backmph, turnangle, backturnangle, acc;
        CCamera  * camera;
        
        int  ex, ez; //PARA LA CREACIÓN DE LOS CHECKPOINTS
        RoadMap * map;
		checkp  check;

    protected:
        void OnCollision(CObject *collisionObject);

    public:

        CJugador(CTerrain * t, int id);
		int nchecks;
		int chp;
        void moveForward(void);
        void moveBackwards(void);
        void turnRight(void);
        void turnLeft(void);
        void backturnRight(void);
        void backturnLeft(void);
        void stop(void);

        void printPosition(void);
};

#endif
